package org.jeecg.modules.inspect.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.inspect.entity.InsClassesCommon;
import org.jeecg.modules.inspect.entity.InsClassesLine;
import org.jeecg.modules.inspect.entity.InsClassesSpecial;
import org.jeecg.modules.inspect.entity.InsClassesUser;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 班次管理
 * @Author: jeecg-boot
 * @Date:   2024-03-10
 * @Version: V1.0
 */
@Data
@ApiModel(value="ins_classesPage对象", description="班次管理")
public class InsClassesPage {

	/**主键ID*/
	@ApiModelProperty(value = "主键ID")
    private String id;
	/**班次名称*/
	@Excel(name = "班次名称", width = 15)
	@ApiModelProperty(value = "班次名称")
    private String className;
	/**部门*/
	@Excel(name = "部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@ApiModelProperty(value = "部门")
    private String departId;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
    private String remark;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
	@ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "修改时间")
    private Date updateTime;

	@ExcelCollection(name="线路配置")
	@ApiModelProperty(value = "线路配置")
	private List<InsClassesLine> insClassesLineList;
	@ExcelCollection(name="班次人员")
	@ApiModelProperty(value = "班次人员")
	private List<InsClassesUser> insClassesUserList;
	@ExcelCollection(name="正常日期")
	@ApiModelProperty(value = "正常日期")
	private List<InsClassesCommon> insClassesCommonList;
	@ExcelCollection(name="特殊日期")
	@ApiModelProperty(value = "特殊日期")
	private List<InsClassesSpecial> insClassesSpecialList;

}
